package cn.iocoder.yudao.module.mqtt.framework.config;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import java.time.Duration;


@Data
@Component
@ConfigurationProperties(prefix = "my.mqtt")
public class MqttProperties {
    /**
     * 过期时间
     */
    @NotNull(message = "上传路径不能为空")
    private String upload;

}
